//
//  FZDialogView.h
//  EnglishTalk
//
//  Created by CyonLeuMBP on 2017/2/21.
//  Copyright © 2017年 Feizhu Tech. All rights reserved.
//

#import <UIKit/UIKit.h>



typedef NS_ENUM(NSInteger, FZDialogViewStyle) {
    FZDialogViewStyleNormal = 0,//文字标题，和副标题
    FZDialogViewStyleImageTitle,//图片显示
};

@interface FZDialogView : UIView

- (instancetype)initWithStyle:(FZDialogViewStyle)viewStyle;

@property (copy, nonatomic) void (^touchConfirmButtonBlock)(void);
@property (copy, nonatomic) void (^touchCloseButtonBlock)(void);
@property (assign, nonatomic) BOOL tapBackgroundToClose;//Default is NO;

@property (strong, nonatomic) UIView *contentView;
@property (strong, nonatomic) UIButton *closeButton;
@property (strong, nonatomic) UIImageView *imageView;
@property (strong, nonatomic) UILabel *titleLabel;
@property (strong, nonatomic) UILabel *subtitleLabel;

@property (strong, nonatomic) UIView *bottomSeperatorView;
//@property (strong, nonatomic) UIButton *cancelButton;
@property (strong, nonatomic) UIButton *confirmButton;


- (void)showInView:(UIView *)fromView;

@end
